Microsoft Windows Graphic

Using Run as

Logging onto your computer using administrative credentials can pose a security risk to your computer and network. Therefore, as a security best practice, it is recommended that you do not log on to your computer with administrative credentials. Instead, you can use Run as to accomplish administrative tasks without having to log on to your computer with administrative credentials. For information about the security risks associated with being logged on as an administrator, see Why you should not run your computer as an administrator.

Using Run as, you can open and run a program using a different account and security context than the one you are logged on with. So, you can log on using a regular user account, then, using Run as, open an administrative program in the context of an administrative account. The administrative context is only used for that specific program and is only available until that program is closed.

It is especially important for domain administrators to use Run as to accomplish administrative tasks. Running your computer as a domain administrator in Active Directory makes your domain (and forest) vulnerable to Trojan horses and other security risks that target the logon sequence.

You can use Run as through the user interface or as a command-line tool.